import 'package:flutter/material.dart';

class MyButton extends StatelessWidget {
  const MyButton({super.key});

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTapUp: (details) => {print(details.localPosition.dx)},
      child: Container(
        width: 300,
        height: 44,
        alignment: Alignment.center,
        margin: const EdgeInsets.fromLTRB(0, 40, 0, 20),
        padding: const EdgeInsets.all(10),
        // transform: Matrix4.rotationZ(20),
        decoration: BoxDecoration(
          color: Colors.amber,
          border: Border.all(color: Colors.black, width: 2),
          borderRadius: const BorderRadius.all(Radius.circular(20)),
        ),
        child: const Text(
          'click',
          textAlign: TextAlign.center,
          textDirection: TextDirection.ltr,
          overflow: TextOverflow.ellipsis,
        ),
      ),
    );
  }
}
